package com.dinzeer.sjapadder;

import com.dinzeer.sjapadder.overlay.ShadowOfRevenantOverlay;
import com.dinzeer.sjapadder.register.*;
import com.mojang.logging.LogUtils;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.client.event.RegisterGuiOverlaysEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.config.ModConfig;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import org.slf4j.Logger;

// The value here should match an entry in the META-INF/mods.toml file
@Mod(Sjap_adder.MODID)
public class Sjap_adder {

    // Define mod id in a common place for everything to reference
    public static final String MODID = "sjap_adder";

    public static final Logger LOGGER = LogUtils.getLogger();





    public static ResourceLocation prefix(String path) {

        return new ResourceLocation(MODID, path);
    }
    public Sjap_adder() {
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        SjaComboRegistry.register(modEventBus);
        SjaSlashArtRegistry.register(modEventBus);
        SjaEffect.REGISTRY.register(modEventBus);
        SjaSpecialEffectRegsitry.register(modEventBus);
        MinecraftForge.EVENT_BUS.register(this);
        SjaCreativeTab.register(modEventBus);
        ModLoadingContext.get().registerConfig(
                ModConfig.Type.COMMON,
                Config.SPEC,
                "slashblade/ " + MODID + "-ModuleSwitch.toml"
        );
    }

}
